Optimal. Leaf size=36 \[ \frac {1}{2} x \sqrt {a \cos ^4(x)} \sec ^2(x)+\frac {1}{2} \sqrt {a \cos ^4(x)} \tan (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {3286, 2715, 8}
\begin {gather*} \frac {1}{2} \tan (x) \sqrt {a \cos ^4(x)}+\frac {1}{2} x \sec ^2(x) \sqrt {a \cos ^4(x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2715
Rule 3286
Rubi steps
\begin {align*} \int \sqrt {a \cos ^4(x)} \, dx &=\left (\sqrt {a \cos ^4(x)} \sec ^2(x)\right ) \int \cos ^2(x) \, dx\\ &=\frac {1}{2} \sqrt {a \cos ^4(x)} \tan (x)+\frac {1}{2} \left (\sqrt {a \cos ^4(x)} \sec ^2(x)\right ) \int 1 \, dx\\ &=\frac {1}{2} x \sqrt {a \cos ^4(x)} \sec ^2(x)+\frac {1}{2} \sqrt {a \cos ^4(x)} \tan (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 25, normalized size = 0.69 \begin {gather*} \frac {1}{2} \sqrt {a \cos ^4(x)} \sec ^2(x) (x+\cos (x) \sin (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 22, normalized size = 0.61
method | result | size |
default | \(\frac {\sqrt {a \left (\cos ^{4}\left (x \right )\right )}\, \left (\cos \left (x \right ) \sin \left (x \right )+x \right )}{2 \cos \left (x \right )^{2}}\) | \(22\) |
risch | \(\frac {\sqrt {a \left ({\mathrm e}^{2 i x}+1\right )^{4} {\mathrm e}^{-4 i x}}\, {\mathrm e}^{2 i x} x}{2 \left ({\mathrm e}^{2 i x}+1\right )^{2}}-\frac {i \sqrt {a \left ({\mathrm e}^{2 i x}+1\right )^{4} {\mathrm e}^{-4 i x}}\, {\mathrm e}^{4 i x}}{8 \left ({\mathrm e}^{2 i x}+1\right )^{2}}+\frac {i \sqrt {a \left ({\mathrm e}^{2 i x}+1\right )^{4} {\mathrm e}^{-4 i x}}}{8 \left ({\mathrm e}^{2 i x}+1\right )^{2}}\) | \(102\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 22, normalized size = 0.61 \begin {gather*} \frac {1}{2} \, \sqrt {a} x + \frac {\sqrt {a} \tan \left (x\right )}{2 \, {\left (\tan \left (x\right )^{2} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 21, normalized size = 0.58 \begin {gather*} \frac {\sqrt {a \cos \left (x\right )^{4}} {\left (\cos \left (x\right ) \sin \left (x\right ) + x\right )}}{2 \, \cos \left (x\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 13, normalized size = 0.36 \begin {gather*} \frac {1}{4} \, \sqrt {a} {\left (2 \, x + \sin \left (2 \, x\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \sqrt {a\,{\cos \left (x\right )}^4} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________